function climbStairs(n: number): number {
  let ans = 1;
  let a = 0;
  let b = 0;
  for (let i = 0; i < n; i++) {
    a = b;
    b = ans;
    ans = a + b;
  }
  return ans;
};